setCompany2Charts()
$('.company2-chart-nav2 li').click(function() {
	$(this).attr('class', 'active').siblings().removeClass('active')
	setCompany2Charts()
})

function setCompany2Charts() {
	var option = {
		tooltip: {
			trigger: 'axis',
			axisPointer: {
				type: 'shadow'
			}
		},
		grid: {
			x: 150
		},
		xAxis: {
			type: 'value',
			axisLabel: {
				show: false
			},
			splitLine: {
				show: false
			},
			axisLine: {
				show: false
			},
			axisTick: {
				show: false
			},
		},
		yAxis: {
			axisLabel: {
				textStyle: {
					color: '#ffffff',
					fontSize: 18
				}
			},
			splitLine: {
				show: false
			},
			axisLine: {
				show: false
			},
			axisTick: {
				show: false
			},
			type: 'category',
			data: ['上海分公司', '浙江分公司', '湖南分公司', '福建分公司', '广东分公司']
		},
		series: [{
			type: 'bar',
			color: '#2a74f1',
			stack: '总量',
			barWidth: 20,
			itemStyle: {
				emphasis: {
					barBorderRadius: 10
				},
				normal: {
					barBorderRadius: 10,
				}
			},
			data: [300, 200, 100, 70, 30]
		}]
	};
	var chart = echarts.init(document.getElementById('company2-chart2'));
	chart.setOption(option);
}